const express = require('express')

const app = express()

app.get('/:id.html', (req, res) => {
    // 获取url路由参数
    console.log(req.params.id)

    res.send('详情')
})

app.listen('3000', () => {
    console.log('node server is running port 3000')
})